import request from '@/utils/request'

// 查询内容页列表
export function listPmsContent(query, pageReq) {
  return request({
    url: '/mall/pmsContent/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询内容页详细
export function getPmsContent(id) {
  return request({
    url: '/mall/pmsContent/' + id,
    method: 'get'
  })
}

// 新增内容页
export function addPmsContent(data) {
  return request({
    url: '/mall/pmsContent',
    method: 'post',
    data: data
  })
}

// 修改内容页
export function updatePmsContent(data) {
  return request({
    url: '/mall/pmsContent',
    method: 'put',
    data: data
  })
}

// 删除内容页
export function delPmsContent(id) {
  return request({
    url: '/mall/pmsContent/' + id,
    method: 'delete'
  })
}

// 导出内容页
export function exportPmsContent(query) {
  return request({
    url: '/mall/pmsContent/export',
    method: 'get',
    params: query
  })
}
